/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.tdmq.v20200217.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeRocketMQPublicAccessPointResponse extends AbstractModel {

    /**
    * Indicates the public network access point status.
0. enabled.
Closed.
2: enabled.
Disabling.
Modifying.
    */
    @SerializedName("Status")
    @Expose
    private Long Status;

    /**
    * Payment status.
0 or unknown.
Normal.
Indicates arrears.
    */
    @SerializedName("PayStatus")
    @Expose
    private Long PayStatus;

    /**
    * Endpoint address.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("AccessUrl")
    @Expose
    private String AccessUrl;

    /**
    * Security Access Rule List
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("Rules")
    @Expose
    private PublicAccessRule [] Rules;

    /**
    * Bandwidth
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("Bandwidth")
    @Expose
    private Long Bandwidth;

    /**
    * Payment mode
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("PayMode")
    @Expose
    private Long PayMode;

    /**
    * Whether public network is billed by traffic.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("BillingFlow")
    @Expose
    private Boolean BillingFlow;

    /**
    * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Indicates the public network access point status.
0. enabled.
Closed.
2: enabled.
Disabling.
Modifying. 
     * @return Status Indicates the public network access point status.
0. enabled.
Closed.
2: enabled.
Disabling.
Modifying.
     */
    public Long getStatus() {
        return this.Status;
    }

    /**
     * Set Indicates the public network access point status.
0. enabled.
Closed.
2: enabled.
Disabling.
Modifying.
     * @param Status Indicates the public network access point status.
0. enabled.
Closed.
2: enabled.
Disabling.
Modifying.
     */
    public void setStatus(Long Status) {
        this.Status = Status;
    }

    /**
     * Get Payment status.
0 or unknown.
Normal.
Indicates arrears. 
     * @return PayStatus Payment status.
0 or unknown.
Normal.
Indicates arrears.
     */
    public Long getPayStatus() {
        return this.PayStatus;
    }

    /**
     * Set Payment status.
0 or unknown.
Normal.
Indicates arrears.
     * @param PayStatus Payment status.
0 or unknown.
Normal.
Indicates arrears.
     */
    public void setPayStatus(Long PayStatus) {
        this.PayStatus = PayStatus;
    }

    /**
     * Get Endpoint address.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return AccessUrl Endpoint address.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getAccessUrl() {
        return this.AccessUrl;
    }

    /**
     * Set Endpoint address.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param AccessUrl Endpoint address.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setAccessUrl(String AccessUrl) {
        this.AccessUrl = AccessUrl;
    }

    /**
     * Get Security Access Rule List
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return Rules Security Access Rule List
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public PublicAccessRule [] getRules() {
        return this.Rules;
    }

    /**
     * Set Security Access Rule List
Note: This field may return null, indicating that no valid values can be obtained.
     * @param Rules Security Access Rule List
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setRules(PublicAccessRule [] Rules) {
        this.Rules = Rules;
    }

    /**
     * Get Bandwidth
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return Bandwidth Bandwidth
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public Long getBandwidth() {
        return this.Bandwidth;
    }

    /**
     * Set Bandwidth
Note: This field may return null, indicating that no valid values can be obtained.
     * @param Bandwidth Bandwidth
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setBandwidth(Long Bandwidth) {
        this.Bandwidth = Bandwidth;
    }

    /**
     * Get Payment mode
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return PayMode Payment mode
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public Long getPayMode() {
        return this.PayMode;
    }

    /**
     * Set Payment mode
Note: This field may return null, indicating that no valid values can be obtained.
     * @param PayMode Payment mode
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setPayMode(Long PayMode) {
        this.PayMode = PayMode;
    }

    /**
     * Get Whether public network is billed by traffic.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return BillingFlow Whether public network is billed by traffic.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public Boolean getBillingFlow() {
        return this.BillingFlow;
    }

    /**
     * Set Whether public network is billed by traffic.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param BillingFlow Whether public network is billed by traffic.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setBillingFlow(Boolean BillingFlow) {
        this.BillingFlow = BillingFlow;
    }

    /**
     * Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. 
     * @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     * @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public DescribeRocketMQPublicAccessPointResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeRocketMQPublicAccessPointResponse(DescribeRocketMQPublicAccessPointResponse source) {
        if (source.Status != null) {
            this.Status = new Long(source.Status);
        }
        if (source.PayStatus != null) {
            this.PayStatus = new Long(source.PayStatus);
        }
        if (source.AccessUrl != null) {
            this.AccessUrl = new String(source.AccessUrl);
        }
        if (source.Rules != null) {
            this.Rules = new PublicAccessRule[source.Rules.length];
            for (int i = 0; i < source.Rules.length; i++) {
                this.Rules[i] = new PublicAccessRule(source.Rules[i]);
            }
        }
        if (source.Bandwidth != null) {
            this.Bandwidth = new Long(source.Bandwidth);
        }
        if (source.PayMode != null) {
            this.PayMode = new Long(source.PayMode);
        }
        if (source.BillingFlow != null) {
            this.BillingFlow = new Boolean(source.BillingFlow);
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamSimple(map, prefix + "Status", this.Status);
        this.setParamSimple(map, prefix + "PayStatus", this.PayStatus);
        this.setParamSimple(map, prefix + "AccessUrl", this.AccessUrl);
        this.setParamArrayObj(map, prefix + "Rules.", this.Rules);
        this.setParamSimple(map, prefix + "Bandwidth", this.Bandwidth);
        this.setParamSimple(map, prefix + "PayMode", this.PayMode);
        this.setParamSimple(map, prefix + "BillingFlow", this.BillingFlow);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

